package com.ruoyi.system.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 运动会新闻对象 tb_news
 *
 * @author ruoyi
 * @date 2024-01-23
 */
@TableName("tb_news")
@EqualsAndHashCode(callSuper = true)
@Data
public class News extends Model<News> {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     * 新闻标题
     */
    @Excel(name = "新闻标题")
    private String title;

    /**
     * 新闻封面图
     */
    @Excel(name = "新闻封面图")
    private String cover;

    /**
     * 新闻内容
     */
    private String content;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Long status;

    /**
     * 发布人
     */
    @Excel(name = "发布人")
    private String pubPeople;

    /**
     * 发布时间
     */
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime pubTime;

}
